package cn.school.basics.vo;

import cn.school.common.BaseVO;
import cn.school.common.utils.SysUserUtils;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("t_dormitory_berth")
public class DormitoryBerthVO extends BaseVO {
    private static final long serialVersionUID = 5796039133591710301L;

    private Long id;

    @ApiModelProperty(value = "基础位置表ID")
    private String locationId;



    @ApiModelProperty(value = "床位类型1-上铺 2-下铺 3-上铺下桌")
    private String berthType;

    @ApiModelProperty(value = "状态 0-无效 1-有效")
    private String status;

    @ApiModelProperty(value = "床位编号")
    @ExcelProperty("床位编号")
    private String berthCode;

    @ApiModelProperty(value = "床位使用学生ID")
    @ExcelProperty("学生ID")
    private String useStudentId;

    @ExcelProperty("宿舍号")
    @TableField(exist = false)
    private String dormitoryNo;

    @ExcelProperty("公寓名称")
    @TableField(exist = false)
    private String apartmentName;

    @ExcelProperty("学生姓名")
    @TableField(exist = false)
    private String studentName;

    /**
     * 默认租户为当前登录人的租户
     */
    private String tenantId = SysUserUtils.getSysUser().getTenantId();
}
